package com.bjx.flow.approve.user;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @desc: 注册用户处理
 * @author: liushuai
 * @date: 2022/12/2 16:29
 */
@Component
public class RegisterUserDispose {
    @Resource
    private ApprovalUserDispose relationDisposeHandler;
    @Resource
    private ApprovalUserDispose postDisposeHandler;
    @Resource
    private ApprovalUserDispose roleDisposeHandler;
    @Resource
    private ApprovalUserDispose userDisposeHandler;
    @Resource
    private ApprovalUserDispose orgDisposeHandler;

    @Resource
    private ApprovalUserDispose comDisposeHandler;


    @Bean
    public void  registerUserDisposeHandler(){
        relationDisposeHandler.next(postDisposeHandler);
        postDisposeHandler.next(roleDisposeHandler);
        roleDisposeHandler.next(userDisposeHandler);
        userDisposeHandler.next(orgDisposeHandler);
        orgDisposeHandler.next(comDisposeHandler);

    }
}
